<template>
  <div>
    <button @click="handleShow">点击加载</button>
    <life-sub v-for="item in list" :key="item"></life-sub>
  </div>
</template>

<script>

import LifeSub from "./LifeSub";

export default {
  name: "LifeTest",
  components: {
      LifeSub
  },
  data() {
    return {
      list: [],
    };
  },
  methods: {
      handleShow() {
        this.list.push(true);
      }
  }
};
</script>

<style>
</style>